<?php
$db=new mysqli('localhost','root','','xundu');
if(mysqli_connect_error()){
echo 'Could not connect to database.';
exit;
}
mysqli_set_charset($db,"utf8");
$cheng = "shi";
// $new="city";
$new="news";
$result=$db->query("SELECT * FROM ".$new."");
$news=$result->fetch_assoc();